home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / dvglue10.arc / TVMSTRM.C < prev    next >
C/C++ Source or Header  |  1988-08-13  |  2KB  |  43 lines

  1. /*=======================================================*/
  2. /*  TVMSTRM.C                                            */
  3. /*                                                       */
  4. /*  (c) Copyright 1988 Ralf Brown  All Rights Reserved   */
  5. /*  May be freely copied for noncommercial use, so long  */
  6. /*  as this copyright notice remains intact, and any     */
  7. /*  changes are marked in the comment blocks preceding   */
  8. /*  functions.                                           */
  9. /*=======================================================*/
  10.  
  11. #include "tvapi.h"
  12. #include "tvstream.h"
  13.  
  14. /*=======================================================*/
  15. /* TVwin_minsize  set min size of physical window        */
  16. /*   Ralf Brown 4/3/88                                   */
  17. /*=======================================================*/
  18.  
  19. void pascal TVwin_minsize(OBJECT win,int rows,int cols)
  20. {
  21.    static BYTE stream[] = { S_MANAGER(3), MS_MINSIZE(0,0) } ;
  22.  
  23.    stream[5] = rows ;
  24.    stream[6] = cols ;
  25.    TVwin_stream(win,stream) ;
  26. }
  27.  
  28. /*=======================================================*/
  29. /* TVwin_maxsize  set max size of physical window        */
  30. /*   Ralf Brown 4/3/88                                   */
  31. /*=======================================================*/
  32.  
  33. void pascal TVwin_maxsize(OBJECT win,int rows,int cols)
  34. {
  35.    static BYTE stream[] = { S_MANAGER(3), MS_MAXSIZE(0,0) } ;
  36.  
  37.    stream[5] = rows ;
  38.    stream[6] = cols ;
  39.    TVwin_stream(win,stream) ;
  40. }
  41.  
  42. /* end of TVMSTRM.C */
  43.